package wu2020.top.compare.orm.demo.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import jakarta.annotation.Resource;
import org.noear.solon.annotation.Controller;
import org.noear.solon.annotation.Mapping;
import org.noear.solon.annotation.Param;
import org.wu.framework.web.response.Result;
import wu2020.top.compare.orm.demo.application.OrmCompareRecordsApplication;
import wu2020.top.compare.orm.demo.domain.model.orm.compare.records.OrmCompareRecordsEcharts;

/**
 * describe Orm 操作记录 
 *
 * @author Jia wei Wu
 * @date 2024/02/28 01:02 下午
 * @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyController 
 **/
@Api(tags = "Orm 操作记录 ")
@Controller
@Mapping("/orm/compare/records")
public class OrmCompareRecordsProvider  {

    @Resource
    private OrmCompareRecordsApplication ormCompareRecordsApplication;



    /**
     * describe 获取echarts数据
     *

     * @author Jia wei Wu
     **/

    @ApiOperation( "获取echarts数据")
    @Mapping("/findEchartsData")
    public Result<OrmCompareRecordsEcharts> findEchartsData(@Param("type")String type){
        return ormCompareRecordsApplication.findEchartsData(type);
    }

}